﻿#include "stdafx.h"
#include "People.h"
#include <iostream>


People::People()
:People{ 500 }//用另外构造函数初始化
{
	std::cout << "int People";
}


People::~People()
{
}


People::People( double money )
:People{ "UnKnow", 1000 }
{
	std::cout << "int People Money";
}


People::People( std::string name, double money )
:Money{ money }, Name{ name }
{
	using namespace std;

	cout << "People Create" << endl;
}

unsigned char People::GetAge()
{
	std::string st = "ok";
	return Age;
}

double People::CostMoney( double costed )
{
	auto result = Money - costed;
	return result;
}